package com.southwind.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.southwind.entity.ProductInfo;
import com.southwind.vo.ProductInfoPageVO;
import com.southwind.vo.ProductInfoVO;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author admin
 * @since 2021-04-18
 */
public interface IProductInfoService extends IService<ProductInfo> {

    Boolean subStock(Integer id, Integer quantity);

    ProductInfoPageVO productInfoPageVO(Long page, Long size);

    ProductInfoVO findById(Integer id);
}
